package com.lzx.reggie.entity

import com.baomidou.mybatisplus.annotation.FieldFill

import com.baomidou.mybatisplus.annotation.TableField
import java.io.Serializable

import java.time.LocalDateTime


data class AddressBook(
    var id:Long? =null,
    //用户id
    var userId: Long? = null,
    //收货人
    var consignee: String? = null,
    //手机号
    var phone: String? = null,
    //性别 0 女 1 男
    var sex: String? = null,
    //省级区划编号
    var provinceCode: String? = null,
    //省级名称
    var provinceName: String? = null,
    //市级区划编号
    var cityCode: String? = null,
    //市级名称
    var cityName: String? = null,
    //区级区划编号
    var districtCode: String? = null,
    //区级名称
    var districtName: String? = null,
    //详细地址
    var detail: String? = null,
    //标签
    var label: String? = null,
    //是否默认 0 否 1是
    var isDefault: Int? = null,
    //创建时间
    @TableField(fill = FieldFill.INSERT)
    var createTime: LocalDateTime? = null,
    //更新时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    var updateTime: LocalDateTime? = null,
    //创建人
    @TableField(fill = FieldFill.INSERT)
    var createUser: Long? = null,
    //修改人
    @TableField(fill = FieldFill.INSERT_UPDATE)
    var updateUser: Long? = null,
    //是否删除
    var isDeleted: Int? = null
):Serializable {
    companion object {
        private const val serialVersionUID = 1L
    }
}